/* ============================================================
   Northern Lights Ventures – Jobs Site
   jobs.northernlightsventures.ca (css/style.css)
   Matches main site theme: dark navy/forest palette, aurora accent
   ============================================================ */

/* === CUSTOM PROPERTIES === */
:root {
  --clr-bg:        #0a0e14;
  --clr-surface:   #111820;
  --clr-surface2:  #16202c;
  --clr-border:    #1e2d3e;
  --clr-text:      #d4dce8;
  --clr-text-muted:#7a8fa3;
  --clr-heading:   #eaf0f8;
  --clr-accent:    #4fc3a1;   /* aurora teal/green */
  --clr-accent2:   #a78bfa;   /* aurora violet */
  --clr-gold:      #c9a84c;   /* warm northern gold */
  --clr-white:     #ffffff;

  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-card: 0 2px 16px rgba(0,0,0,0.45);
  --shadow-hover: 0 6px 32px rgba(79,195,161,0.15);

  --transition: 0.25s ease;
  --max-w: 1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-white); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* === CONTAINER === */
.container {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  padding: 0 24px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--clr-heading);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; font-weight: 600; color: var(--clr-heading); }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}
.section-intro {
  color: var(--clr-text-muted);
  max-width: 680px;
  margin: 0.8rem 0 2.5rem;
  font-size: 1.05rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--clr-accent);
  color: #0a0e14;
}
.btn-primary:hover {
  background: #6dd5b8;
  color: #0a0e14;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(79,195,161,0.35);
}
.btn-outline {
  border: 1.5px solid var(--clr-accent);
  color: var(--clr-accent);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(79,195,161,0.08);
  color: var(--clr-white);
  border-color: var(--clr-white);
}
.btn-large { padding: 1rem 2.4rem; font-size: 1rem; }

/* === SECTION BASE === */
.section {
  padding: 96px 0;
}
.section:nth-child(even) {
  background: var(--clr-surface);
}
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}
.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 24px;
  height: 68px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-logo img {
  height: 40px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}
.nav-links li a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links li a:hover,
.nav-links li a[aria-current="page"] { color: var(--clr-accent); background: rgba(79,195,161,0.07); }
.nav-cta {
  background: var(--clr-accent) !important;
  color: #0a0e14 !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
}
.nav-cta:hover { background: #6dd5b8 !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--clr-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--clr-border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 0.55rem 0.75rem; }
  .nav-cta { margin-top: 8px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,14,20,0.55) 0%,
    rgba(10,14,20,0.72) 60%,
    rgba(10,14,20,0.97) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 120px 24px 48px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  color: var(--clr-white);
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-sub {
  color: rgba(212,220,232,0.88);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto 1rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(17,24,32,0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--clr-border);
  padding: 0;
}
.stat {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1rem;
  border-right: 1px solid var(--clr-border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--clr-accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.3rem;
  text-align: center;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  padding: 136px 0 72px;
  background:
    linear-gradient(135deg, rgba(79,195,161,0.12), rgba(167,139,250,0.08)),
    var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}
.compact-hero .container {
  max-width: 900px;
}
.page-hero h1 {
  color: var(--clr-white);
  margin-bottom: 1rem;
}
.page-hero p:not(.section-eyebrow) {
  color: rgba(212,220,232,0.88);
  font-size: 1.05rem;
  max-width: 760px;
}

/* ============================================================
   ABOUT / BUSINESS
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 3rem;
  align-items: start;
}
.split-section p + p {
  margin-top: 1rem;
}
.location-links-grid .business-card h3 a {
  color: var(--clr-heading);
  text-decoration: none;
}
.location-links-grid .business-card h3 a:hover {
  color: var(--clr-accent);
}
.location-links-grid .text-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.location-business-list {
  display: grid;
  gap: 0.65rem;
  max-width: 42rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  list-style: none;
}
.location-business-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--clr-text);
  font-size: 0.98rem;
}
.location-business-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
}

.seo-local-section p + p {
  margin-top: 1rem;
}
.seo-role-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 720px) {
  .seo-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.seo-role-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--clr-heading);
}
.seo-role-block p {
  color: var(--clr-text-muted);
  font-size: 0.94rem;
}

.job-title-link {
  color: inherit;
  text-decoration: none;
}
.job-title-link:hover {
  color: var(--clr-accent);
}
.job-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.job-card-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.job-detail-section .job-details {
  margin-top: 0.75rem;
}
.job-detail-section h2 {
  font-size: 1.25rem;
}
.job-local-note {
  color: var(--clr-text-muted);
  margin-top: 1rem;
  max-width: 42rem;
}
.job-local-note a {
  white-space: nowrap;
}

.business-grid,
.jobs-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.business-card,
.job-card {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
}
.business-card:hover,
.job-card:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.business-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(79,195,161,0.12);
  color: var(--clr-accent);
  font-weight: 800;
  margin-bottom: 1rem;
}
.business-card h3,
.job-card h3 {
  margin-bottom: 0.5rem;
}
.business-card p,
.job-card p {
  color: var(--clr-text-muted);
  font-size: 0.92rem;
}
.text-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 700;
}

/* ============================================================
   WHY JOIN US – PERKS GRID
   ============================================================ */
.why-us { text-align: center; }
.why-us .section-intro { margin-left: auto; margin-right: auto; }

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.perk-card {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: all var(--transition);
}
.perk-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.perk-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}
.perk-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.perk-card p { color: var(--clr-text-muted); font-size: 0.92rem; }

/* ============================================================
   JOBS
   ============================================================ */
.job-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.job-filter-bar a {
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  color: var(--clr-text);
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  background: var(--clr-surface2);
}
.job-filter-bar a:hover,
.job-filter-bar a.is-active {
  color: var(--clr-bg);
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}
.job-post:target {
  scroll-margin-top: 6rem;
}
.job-list {
  display: grid;
  gap: 1rem;
}
.job-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.5rem;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.job-post h2 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}
.job-type {
  display: inline-flex;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.job-meta {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.job-details {
  list-style: disc;
  margin: 1rem 0 0 1.2rem;
  color: var(--clr-text-muted);
  font-size: 0.92rem;
}
.job-details li + li {
  margin-top: 0.25rem;
}
.job-empty {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--clr-heading);
  font-size: 0.9rem;
  font-weight: 600;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--clr-accent);
}
.danger-outline {
  border-color: #f87171;
  color: #fca5a5;
}
.danger-outline:hover {
  background: rgba(248,113,113,0.1);
  border-color: #fca5a5;
}

/* ============================================================
   PROPERTIES GRID
   ============================================================ */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.property-card {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
}
.property-card:hover {
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.property-card--coming-soon {
  opacity: 0.6;
  border-style: dashed;
}
.property-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.property-type {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.property-info h3 { font-size: 0.97rem; margin-bottom: 0.25rem; }
.property-location { font-size: 0.8rem; color: var(--clr-text-muted); }

/* ============================================================
   APPLICATION FORM
   ============================================================ */
.form-section { background: var(--clr-surface); }
.form-wrapper {
  max-width: 780px;
  margin: 0 auto;
}
.application-form { display: flex; flex-direction: column; gap: 1.4rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-heading);
  letter-spacing: 0.01em;
}
.required { color: var(--clr-accent); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--clr-surface2);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234fc3a1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(79,195,161,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--clr-text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* File upload */
.file-upload-area {
  position: relative;
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  background: var(--clr-surface2);
}
.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: var(--clr-accent);
  background: rgba(79,195,161,0.04);
}
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100% !important;
  height: 100%;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
.file-upload-ui { pointer-events: none; }
.file-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.file-upload-ui p { color: var(--clr-text-muted); font-size: 0.9rem; }
.file-upload-ui strong { color: var(--clr-heading); }
.file-hint { font-size: 0.8rem !important; margin-top: 0.25rem; }
.file-note { font-size: 0.82rem; color: var(--clr-text-muted); margin-top: 0.5rem; }
.file-selected { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.file-selected p { color: var(--clr-accent); font-size: 0.9rem; font-weight: 600; }
.file-remove {
  font-size: 0.8rem;
  color: #f87171;
  padding: 0.2rem 0.6rem;
  border: 1px solid #f87171;
  border-radius: 4px;
  cursor: pointer;
  background: none;
  transition: all var(--transition);
}
.file-remove:hover { background: rgba(248,113,113,0.1); }

/* Captcha */
.captcha-group input { max-width: 180px; }

/* Submit */
.form-submit { display: flex; justify-content: center; margin-top: 0.5rem; }

.form-success {
  background: rgba(79,195,161,0.1);
  border: 1px solid var(--clr-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--clr-accent);
  font-size: 1rem;
  line-height: 1.6;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.form-email-alt {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-surface2);
  border-top: 1px solid var(--clr-border);
  padding: 64px 24px 0;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-container { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  margin-top: 1rem;
  max-width: 340px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clr-accent);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col li {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}
.footer-col a { color: var(--clr-text-muted); }
.footer-col a:hover { color: var(--clr-accent); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: 1.2rem 0;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.footer-bottom a { color: var(--clr-text-muted); }
.footer-bottom a:hover { color: var(--clr-accent); }

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .section-heading-row,
  .job-post,
  .split-section {
    grid-template-columns: 1fr;
  }
  .section-heading-row {
    align-items: flex-start;
  }
  .job-post .btn {
    justify-content: center;
    width: 100%;
  }
  .job-post-actions {
    width: 100%;
    flex-direction: column;
  }
  .job-post-actions .btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .hero-content {
    padding-top: 96px;
  }
  .hero-actions .btn,
  .section-heading-row .btn {
    justify-content: center;
    width: 100%;
  }
  .page-hero {
    padding: 104px 0 56px;
  }
  .job-filter-bar a {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ============================================================
   UTILITY: scroll fade-in
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
