/* Careers rewrite based on Figma structure */

.careers-page {
  background: var(--cream);
}

.careers-hero {
  margin: 16px;
  padding: 20px 16px 72px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    linear-gradient(180deg, rgba(108, 122, 63, 0.5) 0%, rgba(151, 150, 112, 0.5) 100%),
    url("../assets/career-1.jpg") center / cover no-repeat;
  animation: hero-in 0.9s var(--ease) both;
}

.careers-hero-inner {
  min-height: clamp(520px, 46vw, 900px);
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
}

.careers-page .nfb-head .hero-nav-list {
  background: var(--cream);
}

.careers-page .hero-nav .nav-link.active {
  color: var(--olive) !important;
}

.careers-hero-copy {
  margin-top: auto;
  margin-bottom: auto;
  /* padding: clamp(18px, 4vw, 44px) 0; */
  max-width: 1170px;
  margin: auto;
  padding: 135px 20px 100px;
}

.careers-hero-title {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 5.25rem);
  line-height: 1.4;
  text-align: center;
}

.careers-hero-text {
  margin-top: 24px;
  display: grid;
  gap: 22px;
  text-align: center;
}

.careers-hero-text p {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.careers-main {
  padding: 0 12px 24px;
}

.careers-intro {
  padding: 40px 0 20px;
}

.careers-intro-title,
.careers-intro-kicker,
.careers-intro-body {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.careers-intro.visible .careers-intro-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.careers-intro.visible .careers-intro-kicker {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.careers-intro.visible .careers-intro-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.careers-intro-title {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 4.125rem);
  line-height: 1.4;
  color: #000;
}

.careers-intro-kicker {
  margin: 18px 0 0;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.875rem);
  line-height: 1.35;
  color: var(--olive);
}

.careers-intro-body {
  margin: 22px auto 0;
  max-width: 1664px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(0.98rem, 1.45vw, 1.7rem);
  line-height: 1.48;
  color: var(--olive);
}

.careers-work {
  padding: 34px 0 30px;
}

.careers-work-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
}

.careers-work-title {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 4.125rem);
  line-height: 1.4;
  color: #000;
}

.careers-work-kicker {
  margin: 14px 0 0;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.875rem);
  line-height: 1.35;
  color: var(--olive);
}

.careers-work-body {
  margin: 18px 0 0;
  max-width: 948px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(0.96rem, 1.3vw, 1.7rem);
  line-height: 1.48;
  color: var(--olive);
}

.careers-open-title {
  margin: 36px 0 0;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 4.125rem);
  line-height: 1.2;
  color: #000;
}

.careers-open-body {
  margin: 18px 0 0;
  max-width: 948px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.3vw, 1.7rem);
  line-height: 1.48;
  color: var(--olive);
}

.careers-open-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid var(--cream);
  background: var(--olive);
  box-shadow: 0 4px 8.5px rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: clamp(0.95rem, 1.3vw, 2rem);
}

.careers-open-btn:hover {
  color: var(--olive);
  border-color: var(--olive);
  filter: brightness(1.08);
}

.careers-work-visual.careers-opportunity {
  --opportunity-text: rgba(157, 155, 117, 1);
  width: 100%;
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px);
  /* background: #000; */
  color: var(--opportunity-text);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(28px, 3.5vw, 44px);
}

.careers-opportunity-title {
  margin: 0;
  width: 100%;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 1.25;
  color: var(--opportunity-text);
}

.careers-opportunity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(22px, 2.8vw, 36px);
}

.careers-opportunity-list li {
  width: 100%;
}

.careers-opportunity-heading {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.3;
  color: var(--opportunity-text);
}

.careers-opportunity-tagline {
  margin: 6px 0 0;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.4;
  color: var(--opportunity-text);
}

.careers-openings {
  padding: 30px 0 34px;
}

.careers-openings[hidden] {
  display: none !important;
}

.careers-openings.is-open {
  display: block;
  animation: careers-openings-in 0.55s ease both;
}

@keyframes careers-openings-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.careers-openings-title {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 4.125rem);
  line-height: 1.2;
}

.careers-openings-title span {
  color: var(--olive);
}

.careers-openings-sub {
  margin: 12px 0 20px;
  font-family: "Lato", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.6rem);
  color: var(--slate);
}

.careers-table {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.careers-table-head,
.careers-table-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.5fr;
  gap: 20px;
  padding: 10px 0;
}

.careers-table-head {
  text-transform: uppercase;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(0.92rem, 1.25vw, 1.45rem);
  color: #000;
  border-bottom: 1px solid rgba(108, 122, 63, 0.35);
}

.careers-table-head div:last-child {
  color: var(--olive);
}

.careers-table-row {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: clamp(0.92rem, 1.2vw, 1.45rem);
  color: #000;
}

.careers-table-row div:last-child {
  color: #4f553e;
}

.careers-apply {
  padding: 34px 0 74px;
}

.careers-apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(22px, 4vw, 58px);
}

.careers-apply-title {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 4.125rem);
  line-height: 1.2;
}

.careers-apply-sub {
  margin: 14px 0 0;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.55vw, 1.885rem);
  line-height: 1.4;
  color: var(--olive);
}

.careers-mail-wrap {
  margin-top: clamp(28px, 5vw, 140px);
}

.careers-mail-label {
  display: block;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.2vw, 1.56rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

.careers-mail-link {
  display: inline-block;
  margin-top: 6px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.1vw, 3.75rem);
  line-height: 1.3;
  color: var(--olive);
}

.careers-mail-link:hover {
  color: var(--olive);
  opacity: 0.9;
}

.careers-mail-note {
  margin: 10px 0 0;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.3vw, 1.56rem);
  line-height: 1.42;
  color: var(--slate);
}

.careers-apply-form {
  width: 100%;
  max-width: 830px;
  justify-self: end;
}

.careers-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 3.5vw, 42px);
  background: #6d7960;
}

.careers-form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.careers-form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.careers-form-label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(0.72rem, 1vw, 0.875rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.careers-form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 0;
  background: #a1a896;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  line-height: 1.3;
  outline: none;
  transition: background-color 0.2s ease;
}

.careers-form-input::placeholder {
  color: rgba(255, 255, 255, 0.92);
}

.careers-form-input:focus {
  background: #adb5a2;
}

.careers-form-select {
  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' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.careers-form-select:invalid,
.careers-form-select option {
  color: #fff;
}

.careers-form-select option[value=""][disabled] {
  color: rgba(255, 255, 255, 0.92);
}

.careers-file-wrap {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  background: #a1a896;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.careers-file-wrap:hover,
.careers-file-wrap:focus-within {
  background: #adb5a2;
}

.careers-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.careers-file-text {
  padding: 12px 16px;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.careers-file-wrap.has-file .careers-file-text {
  color: #fff;
}

.careers-form-submit {
  align-self: flex-start;
  min-width: 180px;
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 28px;
  border: none;
  background: var(--copper);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.careers-form-submit:hover {
  filter: brightness(1.08);
}

.careers-form-submit:active {
  transform: translateY(1px);
}

.careers-form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  border-radius: 4px;
}

.careers-form-alert--success {
  background: rgba(108, 122, 63, 0.18);
  color: var(--olive);
  border: 1px solid rgba(108, 122, 63, 0.35);
}

.careers-form-alert--error {
  background: rgba(166, 122, 86, 0.16);
  color: #6b4d38;
  border: 1px solid rgba(166, 122, 86, 0.35);
}

.careers-apply-copy{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

@media (max-width: 1199.98px) {
  .careers-work-grid {
    grid-template-columns: 1fr;
  }

  .careers-work-visual.careers-opportunity {
    text-align: left;
    align-items: flex-start;
  }

  .careers-opportunity-list {
    align-items: flex-start;
  }

  .careers-apply-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .careers-mail-wrap {
    margin-top: 38px;
  }

  .careers-apply-form {
    justify-self: stretch;
  }
}

@media (max-width: 991.98px) {
  .careers-hero {
    margin: 12px;
    padding-bottom: 48px;
  }

  .careers-hero-inner {
    min-height: auto;
  }

  .careers-main {
    padding: 0 10px 20px;
  }

  .careers-table-head,
  .careers-table-row {
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 12px;
  }
}

@media (max-width: 767.98px) {
  .careers-openings {
    overflow-x: auto;
  }

  .careers-table {
    min-width: 640px;
  }
}

@media (max-width: 575.98px) {
  .careers-hero {
    margin: 8px;
    border-radius: 16px;
    padding: 14px 10px 26px;
  }

  .careers-open-btn {
    width: 100%;
    justify-content: center;
  }

  .careers-form-row--split {
    grid-template-columns: 1fr;
  }

  .careers-form-submit {
    width: 100%;
  }
}
