/*
 * Career Swap — Page-Specific Styles
 * swap.phoenixareahome.com/career
 * Layered on top of /css/styles.css
 */

/* === Career Hero === */

.career-hero {
  background: #fff;
  padding: 3.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.career-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.career-hero-tag {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.career-hero-inner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 1rem;
}

.career-hero-inner .lead {
  font-size: 1.1875rem;
  color: #334155;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 1.25rem;
}

.career-hero-note {
  font-size: 0.9375rem;
  color: #475569;
  max-width: 600px;
  line-height: 1.5;
}

/* === Section Layout === */

.career-section {
  padding: 3rem 1.5rem;
  scroll-margin-top: 80px;
}

.career-section--alt {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.career-section--dark {
  background: #0f172a;
  color: #f8fafc;
}

.career-section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.career-section-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.career-section--dark h2 {
  color: #f8fafc;
}

.career-section-inner .section-subtitle {
  font-size: 1rem;
  color: #475569;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.career-section--dark .section-subtitle {
  color: #94a3b8;
}

/* === Body Copy === */

.career-prose {
  font-size: 1.0625rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.career-prose:last-child {
  margin-bottom: 0;
}

.career-section--dark .career-prose {
  color: #cbd5e1;
}

.career-prose strong {
  color: #0f172a;
  font-weight: 600;
}

.career-section--dark .career-prose strong {
  color: #f1f5f9;
}

/* === Flight Math Table === */

.flight-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.flight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 640px;
}

.flight-table thead {
  background: #f1f5f9;
}

.flight-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.flight-table td,
.flight-table tbody th {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: top;
}

.flight-table tbody th {
  font-weight: 700;
  text-align: left;
}

.flight-table tbody tr:last-child td,
.flight-table tbody tr:last-child th {
  border-bottom: none;
}

.flight-table tbody tr:hover {
  background: #f8fafc;
}

.flight-table .cost-cell {
  font-weight: 600;
  color: #0f172a;
}

.flight-table .redeye-cell {
  font-size: 0.875rem;
  color: #475569;
  max-width: 260px;
  line-height: 1.4;
}

.flight-table .route-highlight {
  background: #eff6ff;
}

.flight-table .carriers-cell {
  font-size: 0.8125rem;
  color: #475569;
}

.flight-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.flight-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.flight-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.2;
}

.flight-stat-label {
  font-size: 0.8125rem;
  color: #475569;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* === Hybrid Setup === */

.hybrid-scenario {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0 0 1.5rem;
}

.hybrid-scenario-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.hybrid-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.hybrid-timeline li {
  padding: 0.375rem 0 0.375rem 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.5;
}

.hybrid-timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
}

.hybrid-math {
  background: #f8fafc;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 0;
}

.hybrid-math-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #475569;
  margin: 0 0 0.5rem;
}

.hybrid-math-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0;
  font-size: 0.9375rem;
}

.hybrid-math-label {
  color: #475569;
}

.hybrid-math-value {
  font-weight: 600;
  color: #0f172a;
}

.hybrid-math-row--total {
  border-top: 2px solid #e2e8f0;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.hybrid-math-row--total .hybrid-math-label,
.hybrid-math-row--total .hybrid-math-value {
  font-weight: 700;
  color: #0f172a;
}

.hybrid-math-row--savings {
  margin-top: 0.25rem;
}

.hybrid-math-row--savings .hybrid-math-value {
  color: #15803d;
  font-weight: 700;
}

/* === Employer Cards === */

.employer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.employer-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.employer-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.employer-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.employer-card-meta {
  font-size: 0.8125rem;
  color: #475569;
  margin: 0 0 0.625rem;
}

.employer-card-desc {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 0.625rem;
}

.employer-card-employees {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2563eb;
}

.employer-category {
  margin: 0 0 2rem;
}

.employer-category:last-child {
  margin-bottom: 0;
}

.employer-category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.375rem;
}

.employer-category-desc {
  font-size: 0.9375rem;
  color: #475569;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* === Employer Type Badge === */

.employer-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.employer-badge--semi {
  background: #dbeafe;
  color: #1d4ed8;
}

.employer-badge--software {
  background: #dcfce7;
  color: #15803d;
}

.employer-badge--fintech {
  background: #fef3c7;
  color: #92400e;
}

.employer-badge--defense {
  background: #f1f5f9;
  color: #475569;
}

.employer-badge--health {
  background: #fce7f3;
  color: #9d174d;
}

.employer-badge--enterprise {
  background: #ede9fe;
  color: #6d28d9;
}

/* === Risk Assessment === */

.risk-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dc2626;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1rem;
}

.risk-block--option {
  border-left-color: #2563eb;
}

.risk-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.risk-block-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.risk-options {
  margin: 1.5rem 0;
}

.risk-option-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.risk-block--option .risk-block-title {
  display: flex;
  align-items: center;
}

.tax-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0;
}

.tax-callout-title {
  font-size: 1rem;
  font-weight: 700;
  color: #15803d;
  margin: 0 0 0.5rem;
}

.tax-callout-text {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* === Fiber Table === */

.fiber-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fiber-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 580px;
}

.fiber-table thead {
  background: #f1f5f9;
}

.fiber-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.fiber-table td,
.fiber-table tbody th {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: top;
}

.fiber-table tbody th {
  font-weight: 700;
  text-align: left;
}

.fiber-table tbody tr:last-child td,
.fiber-table tbody tr:last-child th {
  border-bottom: none;
}

.fiber-table tbody tr:hover {
  background: #f8fafc;
}

.fiber-google {
  color: #15803d;
  font-weight: 600;
}

.fiber-nogoogle {
  color: #475569;
}

.infra-callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0;
}

.infra-callout-title {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 0.5rem;
}

.infra-callout-text {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* === Career CTA === */

.career-cta {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0 0;
}

.career-cta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.career-cta p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 1.25rem;
}

/* === Section Anchor Links === */

.section-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.section-anchor {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 44px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.section-anchor:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* === Coworking Mention === */

.coworking-mention {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 0;
}

.coworking-mention-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.coworking-mention-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* === Responsive === */

@media (max-width: 767px) {
  .career-hero-inner h1 {
    font-size: 1.875rem;
  }

  .flight-summary {
    grid-template-columns: 1fr;
  }

  .employer-grid {
    grid-template-columns: 1fr;
  }

  .career-section {
    padding: 2rem 1rem;
  }

  .career-hero {
    padding: 2.5rem 1rem 2rem;
  }

  .hybrid-scenario {
    padding: 1rem;
  }

  .risk-block {
    padding: 1rem;
  }

  .career-cta {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .hybrid-math-row {
    flex-direction: column;
    gap: 0.125rem;
  }
}

/* === Infrastructure Section Overrides === */

#infrastructure .employer-category-title { margin-bottom: 0.375rem; }
#infrastructure .employer-category-title + .career-prose { margin-bottom: 1rem; }
.career-prose--spaced { margin-top: 1.5rem; }
