/* PHC Global — Careers Page Styles */
/* Extends css/style.css. Reuses existing tokens: --bg-deep, --bg-navy, --status-colorsnavylight, etc. */

/* ===== Careers Hero ===== */
.careers-hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 160px 0 200px;
  background-color: var(--bg-navy);
  /* Static hex pattern — matches scale/position of next section's hex
     (both use cover + fixed attachment) so the pattern is continuous. */
  background-image: url(../assets/hex_grid.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Photo layer — fades out at the bottom to dissolve into the hex pattern */
.careers-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../assets/hero-handshake.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 95%);
          mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 95%);
  z-index: 0;
}

/* Gradient overlay for text legibility + brand tint — also fades to transparent
   at the bottom so the hex pattern reveals through into the next section */
.careers-hero-section .hero-overlay {
  background:
    linear-gradient(180deg,
      rgba(0, 14, 38, 0.55) 0%,
      rgba(0, 19, 47, 0.70) 45%,
      rgba(0, 19, 47, 0.85) 75%,
      rgba(0, 19, 47, 0.95) 100%),
    radial-gradient(ellipse at 20% 0%, rgba(55, 178, 255, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(30, 165, 241, 0.18) 0%, transparent 55%);
  z-index: 1;
}

/* Subtle screen-blend hex highlight over the photo (fades with the photo) */
.careers-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../assets/hex_grid.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 95%);
          mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 95%);
  z-index: 2;
}

.careers-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 960px;
  padding: 0 24px;
}

.careers-hero-content .section-label {
  margin-bottom: 24px;
}

.careers-hero-content .hero-heading h1 {
  font-size: 84px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 32px;
  letter-spacing: -2px;
  color: var(--white);
}

/* Homepage uses color-dodge against a dark video globe. Our photo has lighter
   tones that wash dodge out, so use `screen` instead — it always brightens
   relative to the backdrop, producing a consistent luminous glow. */
.careers-hero-content .hero-heading .text-negative-b {
  mix-blend-mode: screen;
  color: #6FC9FF;
}

.careers-hero-content .hero-subtext {
  font-size: 16px;
  max-width: 720px;
  margin-bottom: 40px;
}

/* ===== Why PHC Section ===== */
.why-phc-section {
  padding: 120px 0;
  background-color: var(--bg-navy);
  background-image: url(../assets/hex_grid.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.why-phc-section .container {
  position: relative;
  z-index: 2;
}

/* Paired sub-sections within Why PHC (Mission + Perks) */
.why-phc-subsection {
  position: relative;
}

/* Title row with inline "view all" link */
.subsection-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.subsection-title-row .section-title {
  margin: 0;
}

.view-all-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--status-colorsnavylight);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--white);
}

.view-all-link i {
  font-size: 11px;
}

.subsection-divider {
  margin: 96px auto;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(55, 178, 255, 0.35) 50%,
    transparent 100%
  );
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.why-card {
  background: rgba(0, 27, 62, 0.7);
  padding: 32px;
  border-radius: 4px;
  border: 1px solid rgba(55, 178, 255, 0.1);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.why-card:hover {
  background: rgba(0, 27, 62, 1);
  transform: translateY(-5px);
  border-color: var(--status-colorsnavylight);
}

.why-card i {
  font-size: 32px;
  color: var(--status-colorsnavylight);
  margin-bottom: 24px;
  display: block;
}

.why-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
}

.why-card p {
  font-size: 14px;
  color: var(--medium);
  line-height: 1.6;
  margin: 0;
}

/* ===== Open Positions ===== */
.positions-section {
  padding: 120px 0;
  background-color: var(--bg-deep);
  background-image: url(../assets/hex_grid.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--status-colorsnavylight);
}

.positions-section .container {
  position: relative;
  z-index: 2;
}

.positions-intro {
  font-size: 16px;
  color: var(--medium);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 56px;
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.position-card {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 32px;
  align-items: end;
  background: rgba(0, 27, 62, 0.7);
  border: 1px solid rgba(55, 178, 255, 0.1);
  border-radius: 4px;
  padding: 32px 40px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.position-card .position-meta { grid-column: 1 / -1; }
.position-card .position-body { grid-column: 1; }
.position-card .position-toolbar { grid-column: 2; }
.position-card .position-detail { grid-column: 1 / -1; }

.position-card:hover {
  background: rgba(0, 27, 62, 1);
  border-color: var(--status-colorsnavylight);
  transform: translateY(-2px);
}

.position-card.is-expanded {
  background: rgba(0, 27, 62, 1);
  border-color: var(--status-colorsnavylight);
  transform: none;
}

.position-card .position-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--status-colorsnavysubtle);
}

.position-team {
  color: var(--status-colorsyellowlight);
  font-weight: 700;
}

.position-dot {
  opacity: 0.5;
}

.position-body {
  margin-top: 16px;
}

.position-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.position-description {
  font-size: 14px;
  color: var(--medium);
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

.position-description p {
  margin: 0 0 12px;
}

.position-description p:last-child {
  margin-bottom: 0;
}

/* Learn more toggle — sits next to body, bottom-aligned with paragraph */
.position-toolbar {
  display: flex;
  justify-content: flex-end;
  align-self: end;
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(55, 178, 255, 0.35);
  color: var(--status-colorsnavysubtle);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 12px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.learn-more-btn:hover {
  background: rgba(55, 178, 255, 0.10);
  border-color: var(--status-colorsnavylight);
  color: var(--white);
}

.learn-more-btn i {
  font-size: 12px;
  transition: transform 0.25s;
}

.position-card.is-expanded .learn-more-btn i {
  transform: rotate(180deg);
}

/* Expanded detail */
.position-detail {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(55, 178, 255, 0.18);
}

.position-detail-section + .position-detail-section {
  margin-top: 24px;
}

.position-detail-section h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--status-colorsyellowlight);
  margin: 0 0 12px;
}

.position-detail-section p,
.position-detail-section li {
  font-size: 14px;
  color: var(--medium);
  line-height: 1.7;
  margin: 0;
}

.position-detail-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.position-subheading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--status-colorsnavysubtle);
  margin: 24px 0 12px;
}

.position-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.position-detail-actions .apply-now-btn {
  padding: 14px 32px;
  font-size: 12px;
  letter-spacing: 1.4px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== Inline Apply Section (form lives on careers page) ===== */
.apply-section.apply-inline {
  padding: 120px 0;
  min-height: 0;
  border-top: 1px solid rgba(55, 178, 255, 0.15);
}

.apply-section.apply-inline .apply-title {
  font-size: 48px;
  margin-bottom: 12px;
}

.apply-section.apply-inline .apply-subtitle {
  margin-bottom: 40px;
}

.apply-section.apply-inline .section-label {
  margin-bottom: 16px;
}

/* Positions footer / general interest */
.positions-footer {
  margin-top: 64px;
  padding: 40px;
  border: 1px dashed rgba(55, 178, 255, 0.3);
  border-radius: 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.positions-footer p {
  font-size: 16px;
  color: var(--status-colorsnavysubtle);
  margin: 0 0 24px;
}

/* ===== Perks & Benefits Section ===== */
.perks-section {
  padding: 96px 0;
  background-color: var(--bg-navy);
  border-top: 1px solid rgba(55, 178, 255, 0.15);
}

/* Welcome / Join the Team — centered narrative block on the same blue */
.join-team-section {
  padding: 120px 0;
  border-bottom: 1px solid rgba(55, 178, 255, 0.15);
}

.join-team-container {
  text-align: center;
  max-width: 760px;
}

.join-team-section .section-title {
  margin-bottom: 28px;
}

.join-team-lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--white);
  margin: 0 0 20px;
  font-weight: 400;
}

.join-team-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--medium);
  margin: 0 0 40px;
}

.join-team-actions {
  display: flex;
  justify-content: center;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.perk-card {
  padding: 28px;
  background: rgba(0, 27, 62, 0.7);
  border: 1px solid rgba(55, 178, 255, 0.12);
  border-radius: 4px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.perk-card:hover {
  background: rgba(0, 27, 62, 1);
  border-color: var(--status-colorsnavylight);
  transform: translateY(-4px);
}

.perk-card i {
  font-size: 28px;
  color: var(--status-colorsnavylight);
  margin-bottom: 20px;
  display: block;
}

.perk-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.perk-card p {
  font-size: 13px;
  color: var(--medium);
  line-height: 1.6;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .careers-hero-content .hero-heading h1 {
    font-size: 46px;
  }
  .careers-hero-content .hero-subtext {
    font-size: 16px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .position-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .position-card .position-toolbar {
    grid-column: 1;
    margin-top: 16px;
  }
  .position-toolbar,
  .position-detail-actions {
    justify-content: stretch;
  }
  .learn-more-btn,
  .position-detail-actions .apply-now-btn {
    width: 100%;
    justify-content: center;
  }
  .position-title {
    font-size: 20px;
  }
  .perks-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .subsection-divider {
    margin: 64px auto;
  }
  .join-team-section {
    padding: 80px 0;
  }
  .join-team-lede {
    font-size: 18px;
  }
}

@media (max-width: 440px) {
  .careers-hero-section {
    padding: 120px 0 60px;
  }
  .careers-hero-content .hero-heading h1 {
    font-size: 38px;
  }
  .positions-section,
  .why-phc-section {
    padding: 80px 0;
  }
  .subsection-divider {
    margin: 48px auto;
  }
}
