/* FIFO Jobs WA — style.css */

:root {
  --navy:        #0a1628;
  --navy-mid:    #0f2040;
  --navy-light:  #1a3560;
  --orange:      #f59e0b;
  --orange-dark: #d97706;
  --orange-light:#fde68a;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --light-bg:    #f1f5f9;
  --border:      #e2e8f0;
  --text:        #1a2332;
  --text-muted:  #64748b;
  --green:       #10b981;
  --red:         #ef4444;
  --card-shadow: 0 2px 8px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.5px;
}

.logo span { color: var(--orange); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: color .15s, background .15s;
}

.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }

.main-nav .btn-nav {
  background: var(--orange);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
}

.main-nav .btn-nav:hover { background: var(--orange-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 7px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
}

.btn:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }

.btn-primary   { background: var(--orange); color: var(--navy); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-outline   { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.btn-white     { background: var(--white); color: var(--navy); }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.6); color: var(--white); }
.btn-sm  { padding: 7px 16px; font-size: .88rem; }
.btn-lg  { padding: 14px 30px; font-size: 1.05rem; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2a50 60%, #1a3a20 100%);
  padding: 72px 0 64px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--orange); }

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.hero-stat .lbl { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ── Search bar ─────────────────────────────────────────────────────────── */

.search-bar {
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 700px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.search-bar select,
.search-bar input {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
}

.search-bar select:focus,
.search-bar input:focus { outline: 2px solid var(--orange); border-color: transparent; }

.search-bar .btn { white-space: nowrap; }

/* ── Tags / Badges ──────────────────────────────────────────────────────── */

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}

.tag-orange  { background: #fef3c7; color: #92400e; }
.tag-green   { background: #d1fae5; color: #065f46; }
.tag-blue    { background: #dbeafe; color: #1e40af; }
.tag-navy    { background: var(--navy); color: var(--white); }
.tag-grey    { background: #f1f5f9; color: var(--text-muted); }

.roster-badge {
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: .78rem;
  padding: 3px 9px;
  border-radius: 4px;
}

/* ── Job Cards ──────────────────────────────────────────────────────────── */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--card-shadow);
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card:hover { border-color: var(--orange); box-shadow: 0 4px 16px rgba(245,158,11,.15); }

.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

.job-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.job-title a { color: var(--text); }
.job-title a:hover { color: var(--orange-dark); text-decoration: none; }

.job-company { font-size: .9rem; color: var(--text-muted); font-weight: 600; }

.job-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .83rem;
  color: var(--text-muted);
}

.job-meta span { display: flex; align-items: center; gap: 4px; }

.job-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.job-salary { font-weight: 700; color: var(--green); font-size: .95rem; }
.job-posted { font-size: .78rem; color: var(--text-muted); }

/* ── Featured job ───────────────────────────────────────────────────────── */

.job-card.featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.featured-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Section layout ─────────────────────────────────────────────────────── */

section { padding: 56px 0; }
section.bg-light { background: var(--light-bg); }
section.bg-navy  { background: var(--navy); color: var(--white); }
section.bg-navy a { color: var(--orange-light); }
section.compact  { padding: 36px 0; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 10px; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ── Category / region cards ────────────────────────────────────────────── */

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.region-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  box-shadow: var(--card-shadow);
}

.region-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.15);
  text-decoration: none;
  color: var(--text);
}

.region-icon { font-size: 2rem; margin-bottom: 10px; }
.region-name { font-weight: 700; font-size: .95rem; }
.region-count { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.type-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  transition: background .15s, transform .15s;
  box-shadow: 0 2px 8px rgba(10,22,40,.2);
}

.type-card:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

.type-icon { font-size: 2rem; margin-bottom: 10px; }
.type-name { font-weight: 700; font-size: .95rem; color: var(--white); }
.type-count { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── Page hero (inner pages) ────────────────────────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 48px 0 40px;
  color: var(--white);
}

.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.page-hero .lead { color: rgba(255,255,255,.8); font-size: 1.05rem; }

.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }

/* ── Job listing page ───────────────────────────────────────────────────── */

.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.job-detail-header {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
}

.job-detail-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.job-detail-company { font-size: 1.05rem; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }

.job-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  background: var(--light-bg);
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
}

.detail-item label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 4px; }
.detail-item span  { font-weight: 700; font-size: .95rem; }

.job-content h2 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; }
.job-content p  { margin-bottom: 14px; color: var(--text); line-height: 1.7; }
.job-content ul { margin: 0 0 14px 20px; list-style: disc; }
.job-content ul li { margin-bottom: 6px; color: var(--text); }

/* ── Apply sidebar ──────────────────────────────────────────────────────── */

.apply-card {
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: 10px;
  padding: 24px;
  position: sticky;
  top: 90px;
  text-align: center;
}

.apply-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.apply-card p  { font-size: .88rem; color: var(--text-muted); margin-bottom: 18px; }
.apply-card .salary-big { font-size: 1.5rem; font-weight: 800; color: var(--green); margin-bottom: 4px; }
.apply-card .salary-note { font-size: .78rem; color: var(--text-muted); margin-bottom: 18px; }

.sidebar-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}

.sidebar-info h4 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.sidebar-info ul { font-size: .85rem; color: var(--text-muted); }
.sidebar-info li { margin-bottom: 8px; padding-left: 14px; position: relative; }
.sidebar-info li::before { content: '→'; position: absolute; left: 0; color: var(--orange); }

/* ── Forms ────────────────────────────────────────────────────────────────── */

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.form-note { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── CTA Banner ─────────────────────────────────────────────────────────── */

.cta-banner { text-align: center; padding: 20px 0; }
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 1.05rem; }

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  box-shadow: var(--card-shadow);
}

.step-number {
  width: 44px; height: 44px;
  background: var(--orange);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px;
}

.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-logo span { color: var(--orange); }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.6; }

.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .88rem; text-decoration: none; }
.footer-col ul a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--white); }

/* ── Employer page ───────────────────────────────────────────────────────── */

.employer-cta-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.employer-cta-text { flex: 1; min-width: 260px; }
.employer-cta-text h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.employer-cta-text p  { color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 10px; }

.employer-cta-action { text-align: center; min-width: 200px; }
.btn-large { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; }
.cta-sub { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 10px; }

/* ── Post a Job page ─────────────────────────────────────────────────────── */

.page-hero p { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-top: 8px; }

.post-job-form .form-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.post-job-form .form-fieldset legend {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0 8px;
}

.form-submit-wrap { text-align: center; padding: 10px 0; }

/* ── Utilities ───────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.highlight-box { background: var(--light-bg); border-radius: 8px; padding: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ── Section helpers ─────────────────────────────────────────────────────── */

.section { padding: 56px 0; }
.section-alt { background: var(--light-bg); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .job-detail-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .employer-cta-card { flex-direction: column; text-align: center; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; background: var(--navy-mid); padding: 10px 0 16px; }
  .nav-toggle { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .jobs-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .type-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section { padding: 36px 0; }
  section  { padding: 36px 0; }
  .page-hero { padding: 32px 0 28px; }
  .page-hero h1 { font-size: 1.6rem; }
}

@media (max-width: 400px) {
  .region-grid { grid-template-columns: 1fr; }
  .type-grid   { grid-template-columns: 1fr; }
}
