/* ================================================================
   JobTrack — public landing page stylesheet (sky-blue theme)
   Loaded ONLY by app/Views/home.php. The internal (navy) app uses
   style.css; keeping the two separate means neither can leak into
   the other.
   ================================================================ */

:root {
  --accent:      #0369a1;
  --accent-bright: #38bdf8;
  --accent-dark: #075985;
  --accent-deep: #0c4a6e;
  --accent-soft: #e0f2fe;
  --accent-wash: #f0f9ff;
  --ink:         #0c1e2e;
  --ink-soft:    #3d5163;
  --muted:       #64748b;
  --line:        #e2eef7;
  --white:       #ffffff;

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 10px rgba(3, 105, 161, 0.06);
  --shadow:      0 12px 32px rgba(12, 30, 46, 0.12);
  --shadow-lg:   0 30px 60px rgba(8, 47, 73, 0.28);

  --container:   1120px;
  --nav-h:       72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .stat .num, .step-num, .tracker-role {
  font-family: 'Bricolage Grotesque', 'Segoe UI', Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--accent); color: var(--white); }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* Buttons sitting on the dark blue hero / CTA band */
.on-dark .btn { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.on-dark .btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.on-dark .btn-solid { background: var(--white); color: var(--accent-deep); border-color: var(--white); }
.on-dark .btn-solid:hover { background: #f0f9ff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.brand span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-greeting { font-size: 13px; color: var(--ink-soft); margin-right: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.18), transparent 35%),
    linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-deep) 60%, #082f49 100%);
  padding: 88px 0 140px;
}

/* subtle dotted texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  color: var(--accent-bright);
  white-space: nowrap;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.7;
  color: #e0f2fe;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 14px;
  color: #e0f2fe;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "✓";
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

/* Hero visual: example tracker card */
.hero-visual { position: relative; }

.tracker-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform .4s ease;
}
.hero-visual:hover .tracker-card { transform: rotate(0deg) translateY(-4px); }

.tracker-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.tracker-avatar {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}
.tracker-role { font-weight: 800; font-size: 16px; }
.tracker-dept { font-size: 13px; color: var(--muted); }
.tracker-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  background: var(--accent-wash);
  padding: 4px 10px;
  border-radius: 999px;
}

.stage-list { list-style: none; position: relative; }
.stage-list::before {
  content: "";
  position: absolute;
  left: 13px; top: 14px; bottom: 14px;
  width: 2px;
  background: var(--line);
}
.stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}
.stage-dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.stage.done { color: var(--ink); }
.stage.done .stage-dot { background: var(--accent); border-color: var(--accent); color: var(--white); }
.stage.current { color: var(--ink); font-weight: 700; }
.stage.current .stage-dot {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(3, 105, 161, 0.15);
}
.stage.current .stage-dot::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
.stage-when { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }

.float-badge {
  position: absolute;
  left: -34px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: floaty 5s ease-in-out infinite;
}
.float-badge .icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.float-badge strong { display: block; font-size: 13px; }
.float-badge small { color: var(--muted); font-size: 12px; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.6); opacity: .6; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Curved bottom edge of the hero */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 80px;
  color: var(--white);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  position: relative;
  z-index: 2;
  margin-top: -78px;
}
.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.stat { text-align: center; padding: 26px 16px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat .lbl {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; scroll-margin-top: var(--nav-h); }
.section.alt { background: var(--accent-wash); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub { font-size: 15px; color: var(--muted); }

/* ---------- Vacancy grid ---------- */
.vac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.vac-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.vac-card:hover {
  transform: translateY(-4px);
  border-color: #bae6fd;
  box-shadow: 0 16px 34px rgba(3, 105, 161, 0.16);
}

.vac-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--accent-soft), #bae6fd);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.vac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vac-card:hover .vac-media img { transform: scale(1.04); }
.vac-media .initial {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--white);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.vac-body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.vac-dept {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.vac-title { font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.vac-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; flex: 1; }

.vac-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.vac-date { font-size: 12.5px; color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 56px 24px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state .icon { font-size: 34px; margin-bottom: 10px; }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px rgba(3, 105, 161, 0.3);
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.section.alt + .cta-band { background: var(--accent-wash); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 48px 52px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.25), transparent 40%),
    linear-gradient(135deg, var(--accent-dark), var(--accent-deep));
  box-shadow: var(--shadow);
}
.cta-inner h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; margin-bottom: 6px; }
.cta-inner p { color: #e0f2fe; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b6c8d8; padding: 34px 0; font-size: 13.5px; }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .brand { color: var(--white); font-size: 17px; }
.site-footer .brand-mark { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-greeting { display: none; }
  .float-badge { left: 8px; }
  .stats-card { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat { padding: 18px 16px; }
  .section { padding: 72px 0; }
  .cta-inner { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
  .hero-actions .btn { width: 100%; }
  .tracker-card { transform: none; padding: 20px 18px; }
  .stage-when { display: none; }
  .vac-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
