@import url("base.css");

body.page-careers {
  background: linear-gradient(
    180deg,
    rgba(163, 180, 156, 0.98) 0%,
    rgba(163, 180, 156, 0.88) 100%
  );
  color: var(--color-text-dark);
}

body.page-careers::before,
body.page-careers::after {
  display: none;
}

.page-careers .toast {
  background: var(--color-bg-secondary);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #04152d;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 34px rgba(10, 26, 51, 0.32);
  cursor: pointer;
  z-index: 45;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(163, 180, 156, 0.98);
}

/* Hero Section - Full Green */
.hero--careers {
  background: linear-gradient(
    180deg,
    rgba(163, 180, 156, 0.98) 0%,
    rgba(163, 180, 156, 0.88) 100%
  );
  color: var(--color-text-dark);
  position: relative;
  overflow: hidden;
}

.hero--careers::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero--careers .hero__lead {
  color: rgba(16, 22, 35, 0.82);
  opacity: 0.95;
}

.hero--careers .eyebrow {
  color: rgba(16, 22, 35, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero--careers h1 {
  color: var(--color-text-dark);
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.hero--careers p,
.hero--careers .hero__copy p {
  color: rgba(16, 22, 35, 0.78);
}

/* Hero Images */
.hero__image-layer--careers {
  background-image: url("/logo/careers.jpg");
}

.hero__image-layer--careers-secondary {
  inset: 12% 12% 12% 18%;
  background-image: linear-gradient(
      160deg,
      rgba(163, 180, 156, 0.6),
      rgba(10, 26, 51, 0.2)
    ),
    url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=800&q=80");
  filter: blur(0px);
  transform: translate(7%, 7%);
  z-index: -1;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  position: absolute;
}

/* Section Backgrounds - Full Green */
.section--light {
  background: linear-gradient(
    180deg,
    rgba(163, 180, 156, 0.98) 0%,
    rgba(163, 180, 156, 0.88) 100%
  );
  color: var(--color-text-dark);
  position: relative;
  overflow: hidden;
}

.section--light::before {
  display: none;
}

.section--positions {
  background: linear-gradient(
    180deg,
    rgba(163, 180, 156, 0.98) 0%,
    rgba(163, 180, 156, 0.88) 100%
  );
  color: var(--color-text-dark);
}

.section--talent-pool {
  background: linear-gradient(
    180deg,
    rgba(163, 180, 156, 0.98) 0%,
    rgba(163, 180, 156, 0.88) 100%
  );
  color: var(--color-text-dark);
  padding-bottom: 6rem;
}

.section--light h2,
.section--positions h2,
.section--talent-pool h2 {
  color: var(--color-text-dark);
}

.section--light .section__intro p,
.section--positions .section__intro p,
.section--talent-pool .section__intro p {
  color: rgba(16, 22, 35, 0.72);
}

.section--light .eyebrow,
.section--positions .eyebrow,
.section--talent-pool .eyebrow {
  color: rgba(16, 22, 35, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* CV Link Styling */
.cv-link {
  color: var(--color-brand-deep);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cv-link:hover {
  color: rgba(10, 26, 51, 0.8);
}

/* Why Work List */
.why-work-content {
  margin-top: 2rem;
}

.why-work-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.2rem;
}

.why-work-list li {
  padding-left: 2.5rem;
  position: relative;
  color: rgba(16, 22, 35, 0.85);
  font-size: 1.1rem;
  font-weight: 500;
}

.why-work-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-brand-deep);
  font-size: 1.8rem;
  line-height: 1;
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

/* Role Cards - Updated for Two Buttons */
.role-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) auto;
  grid-template-rows: auto auto;
  gap: 0.75rem 2rem;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--color-brand-deep);
  border: 1px solid rgba(16, 22, 35, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  color: #ffffff;
}

.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-text-dark);
  border-color: rgba(255, 255, 255, 0.2);
}

.role-card h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 1.3rem;
  color: inherit;
}

.role-card__meta {
  grid-column: 1;
  grid-row: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.75;
}

.role-card:hover .role-card__meta {
  opacity: 0.85;
}

.role-card p {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: inherit;
  opacity: 0.85;
  margin: 0;
  line-height: 1.6;
}

.role-card:hover p {
  opacity: 0.9;
}

.role-card__actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.role-card__actions .btn {
  white-space: nowrap;
  min-width: 140px;
}

.role-card:hover .btn--primary {
  background: #ffffff;
  color: var(--color-brand-deep);
}

.role-card:hover .btn--secondary {
  background: var(--color-brand-deep);
  color: #ffffff;
  border-color: var(--color-brand-deep);
}

.talent-form .form__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.talent-form .form__field {
  display: grid;
  gap: 0.6rem;
}

.talent-form .form__field--wide {
  grid-column: 1 / -1;
}

.talent-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.talent-form input,
.talent-form select,
.talent-form textarea {
  background: rgba(10, 26, 51, 0.06);
  border: 1px solid black;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--color-text-dark);
  font: inherit;
  transition: border 180ms ease, background 180ms ease;
}
.talent-form input::placeholder,
.talent-form select::placeholder,
.talent-form textarea::placeholder,
.talent-form option::placeholder {
  color: #ffffff;
}

.talent-form input:focus,
.talent-form select:focus,
.talent-form textarea:focus {
  outline: none;
  border-color: var(--color-brand-deep);
  background: rgba(10, 26, 51, 0.08);
}

.talent-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form__actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.file-indicator {
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-text-dark);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.form__result {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  word-break: break-word;
}

.form__result--success {
  color: var(--color-brand-deep);
}

.form__result--error {
  color: #b00020;
}

.form__result-link {
  color: var(--color-brand-deep);
  text-decoration: underline;
  font-weight: 600;
}

.form__result-link:hover {
  color: #000;
}

.btn--upload {
  cursor: pointer;
  background: rgba(10, 26, 51, 0.9);
  color: white;
}

.btn--upload:hover {
  background: #ffffff;
  transform: translateY(-2px);
  color: black;
}
.btn--submit {
  cursor: pointer;
  background: #ffffff;
  color: black;
}

.btn--submit:hover {
  background: rgba(10, 26, 51, 0.9);
  color: white;
  transform: translateY(-2px);
}

.form__note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(16, 22, 35, 0.6);
  margin-left: auto;
}

.page-careers .btn--primary {
  background: #ffffff;
  color: var(--color-brand-deep);
  border-color: var(--color-brand-deep);
  box-shadow: 0 4px 12px rgba(10, 26, 51, 0.25);
  font-weight: 600;
}

.page-careers .btn--primary:hover {
  background: rgba(10, 26, 51, 0.9);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(10, 26, 51, 0.35);
  transform: translateY(-2px);
}

.page-careers .btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-careers .btn--secondary:hover {
  background: #ffffff;
  color: var(--color-brand-deep);
  transform: translateY(-2px);
}

.page-careers .btn--ghost {
  background: rgba(10, 26, 51, 0.9);
  color: #ffffff;
  border: 2px solid rgba(16, 22, 35, 0.3);
  width: auto;
}

.page-careers .btn--ghost:hover {
  background: rgba(16, 22, 35, 0.08);
  border-color: rgba(16, 22, 35, 0.5);
  transform: translateY(-2px);
}

.hero__floating-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-dark);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero__floating-card p {
  color: var(--color-text-dark);
  font-weight: 600;
}

.hero__floating-card span {
  color: var(--color-text-dark);
  opacity: 0.7;
}

.site-footer {
  color: #ffffff;
}

.site-footer {
  margin-top: 4rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: #04152d;
  color: var(--color-bg-primary);
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
}

.site-footer__brand {
  max-width: 420px;
}

.site-footer__logo img {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.site-footer__brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.site-footer__social {
  margin-top: 1.25rem;
}

.site-footer__social .social-link {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__social .link-content {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer__social .social-link:hover .link-content {
  background: rgba(255, 255, 255, 0.18);
  color: #000;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.site-footer__column h4 {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: white;
}
.site-footer__column li {
  color: white;
}
.site-footer__column li a {
  color: white;
}

.site-footer__list,
.site-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--color-text);
}

.site-footer__list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer__list a:hover {
  color: #000;
}

.site-footer__contact-list span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0.15rem;
}

.site-footer__contact-list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer__contact-list p {
  margin: 0;
  color: white;
  font-size: 16px;

  line-height: 1.6;
}

.site-footer__actions {
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: white;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__actions p {
  flex: 1;
  margin: 0;
  color: black;
  min-width: 220px;
}

.site-footer__actions .btn {
  flex-shrink: 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  color: white;
}

.site-footer__bottom p {
  margin: 0;
}
.btn-footer {
  background: var(--color-accent);
  color: var(--color-bg-primary);
  border: 2px solid var(--color-bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 200ms ease, color 200ms ease;
}
.btn-footer:hover {
  background: var(--color-bg-primary);
  color: white;
}

.site-footer__links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-footer--enhanced {
  margin-top: 4rem;
}

.social-link {
  text-decoration: none;
  color: #0077b5;
  display: inline-flex;
}

.link-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 150ms ease, color 150ms ease;
}

.social-link:hover .link-content {
  background: rgba(255, 255, 255, 0.15);
  color: #000;
}

@media (max-width: 1080px) {
  .role-card {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
    grid-template-rows: repeat(3, auto);
  }

  .role-card p {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .role-card__actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: start;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .careers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .role-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .role-card h3,
  .role-card__meta,
  .role-card p,
  .role-card__actions {
    grid-column: 1;
    grid-row: auto;
  }

  .role-card__meta {
    margin-bottom: 0.75rem;
    flex-direction: column;
    gap: 0.35rem;
  }

  .role-card__actions {
    justify-self: start;
    align-self: center;
    margin-top: 1rem;
    width: 100%;
  }

  .role-card__actions .btn {
    width: 100%;
  }

  .talent-form {
    padding: 2rem;
  }

  .talent-form .form__grid {
    grid-template-columns: 1fr;
  }

  .form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form__note {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .why-work-list li {
    font-size: 1rem;
    padding-left: 2rem;
  }

  .talent-form {
    padding: 1.5rem;
  }
}
