/* ============================================================
   JOBS PAGE – jobs.css
   ============================================================ */

/* ── Page Hero (wie classes.html) ─────────────────────── */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(214, 207, 191, 0.3);
}

.page-hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.5rem;
}

.page-hero-title {
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .page-hero-title { font-size: 9rem; }
}

.page-hero-sub {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grey);
}

/* ── Jobs Page ──────────────────────────────────────────── */
.jobs-page {
  background: var(--surface);
  padding-bottom: 0;
}

.jobs-intro {
  padding: 4rem 0 2rem;
  border-bottom: 2px solid var(--line);
}

.jobs-intro-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--grey);
  font-weight: 400;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .jobs-intro-text { font-size: 1.25rem; }
}

/* ── Job List ───────────────────────────────────────────── */
.job-list {
  border-top: 1px solid var(--line);
}

.job-item {
  border-bottom: 1px solid var(--light-grey);
}

.job-item-btn {
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.job-item-btn:hover .job-item-name {
  color: var(--grey);
}

.job-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.job-item-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  transition: color 150ms;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .job-item-name { font-size: 1.25rem; }
}

.job-item-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
}

.job-item-tags {
  font-size: 0.7rem;
  color: var(--grey);
  text-transform: uppercase;
  font-weight: 500;
}

.job-item-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.job-item-meta {
  display: none;
  font-size: 0.7rem;
  color: var(--grey);
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .job-item-meta { display: block; }
}

.job-item-icon {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--black);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  width: 1.5rem;
  text-align: center;
}

/* ── Accordion Panel ────────────────────────────────────── */
.job-item-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.job-item-panel.is-open {
  max-height: 900px;
  opacity: 1;
}

.job-item-panel-inner {
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .job-item-panel-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.job-item-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--grey);
  font-weight: 400;
  grid-column: 1 / -1;
}

.job-block-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.job-block-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-block-list li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--grey);
  font-weight: 400;
  padding-left: 1rem;
  position: relative;
}

.job-block-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.job-item-apply {
  grid-column: 1 / -1;
  padding-top: 0.5rem;
}

.job-apply-link {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--black);
  transition: background 150ms, color 150ms;
}

.job-apply-link:hover {
  background: transparent;
  color: var(--black);
}

/* ── Apply CTA ──────────────────────────────────────────── */
.booking-cta {
  background: var(--black);
  color: var(--white);
  padding: 8rem 0;
}

.booking-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .booking-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.booking-cta-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .booking-cta-title { font-size: 5rem; }
}

.booking-cta-sub {
  font-size: 0.875rem;
  color: var(--grey);
  font-weight: 500;
  max-width: 30rem;
}

.booking-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .booking-cta-actions { align-items: flex-end; }
}

.btn-book-large {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 1.25rem 3rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--white);
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}

.btn-book-large:hover {
  background: transparent;
  color: var(--white);
}

.btn-locations-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid var(--grey);
  padding-bottom: 0.2rem;
  transition: color 150ms, border-color 150ms;
}

.btn-locations-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ── Active nav link ────────────────────────────────────── */
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
