/* =========================================================
   StaffWorx Recruitment — Main Stylesheet
   ========================================================= */

/* ── Reset & base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #0059bb;
  --primary-light:  #2e7dd4;
  --primary-dark:   #003f85;
  --secondary:      #00a8a8;
  --secondary-light:#00c8c8;
  --foreground:     #3a4a5e;
  --background:     #ffffff;
  --muted:          #f0f4f8;
  --muted-fg:       #6b7a90;
  --border:         #dce4ef;
  --radius:         0.75rem;
  --shadow-soft:    0 4px 20px rgba(0,89,187,0.10);
  --shadow-medium:  0 8px 30px rgba(0,89,187,0.15);
  --shadow-strong:  0 20px 40px rgba(0,89,187,0.20);
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ───────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; color: var(--foreground); }

/* ── Layout helpers ───────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.6rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: rgba(0,89,187,0.08); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.875rem; }

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-soft);
  height: 64px;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo img { height: 48px; width: auto; }

.nav__links {
  display: flex; align-items: center; gap: 2rem;
}
.nav__links a {
  color: var(--foreground); font-weight: 500; transition: color 0.2s;
}
.nav__links a:hover { color: var(--primary); }
.nav__links a.btn-primary,
.nav__mobile a.btn-primary { color: #fff; }
.nav__links a.btn-primary:hover,
.nav__mobile a.btn-primary:hover { color: #fff; }

.nav__toggle {
  display: none; background: none; border: none; padding: 0.25rem;
}
.nav__toggle svg { width: 24px; height: 24px; stroke: var(--foreground); fill: none; stroke-width: 2; }

.nav__mobile {
  display: none; flex-direction: column; gap: 1rem;
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
}
.nav__mobile.open { display: flex; }
.nav__mobile a { color: var(--foreground); font-weight: 500; padding: 0.25rem 0; }
.nav__mobile a:hover { color: var(--primary); }

@media (max-width: 767px) {
  .nav__links  { display: none; }
  .nav__toggle { display: block; }
}

/* ── Hero Section ─────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 64px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,89,187,0.88) 0%, rgba(0,168,168,0.80) 100%);
}
.hero__content {
  position: relative; z-index: 2; text-align: center;
  max-width: 900px; padding: 2rem 1.5rem;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(4px);
  color: #fff; padding: 0.4rem 1.1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero__badge svg { width:16px; height:16px; fill:none; stroke:#fff; stroke-width:2; }
.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800;
  color: #fff; margin-bottom: 1.25rem; line-height: 1.1;
}
.hero__title span { color: var(--secondary-light); }
.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: rgba(255,255,255,0.90);
  max-width: 700px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  animation: bounce 1.5s infinite; color: rgba(255,255,255,0.6);
}
.hero__scroll svg { width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:2; transform: rotate(90deg); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── Services Section ─────────────────────────────────── */
.services { padding: 5rem 0; background: var(--muted); }
.section-header { text-align: center; max-width: 750px; margin: 0 auto 3.5rem; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-header p  { color: var(--muted-fg); font-size: 1.1rem; }

.services__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem;
}
.service-card {
  background: #fff; border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid transparent;
}
.service-card:hover {
  box-shadow: var(--shadow-medium); transform: translateY(-4px); border-color: rgba(0,89,187,0.12);
}
.service-card__icon { margin-bottom: 1rem; }
.service-card__icon svg { width:32px; height:32px; fill:none; stroke-width:1.8; }
.icon-primary svg { stroke: var(--primary); }
.icon-secondary svg { stroke: var(--secondary); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card p  { color: var(--muted-fg); margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.65; }
.service-card__features { display: flex; flex-direction: column; gap: 0.4rem; }
.service-card__features li {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--muted-fg); font-size: 0.875rem;
}
.service-card__features li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}

/* ── About Section ────────────────────────────────────── */
.about { padding: 5rem 0; background: #fff; }
.about__main { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-bottom: 5rem; }
.about__main h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.about__main p  { color: var(--muted-fg); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; }
.about__img { border-radius: var(--radius); box-shadow: var(--shadow-strong); width: 100%; object-fit: cover; }

.about__values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-bottom: 5rem;
}
.value-card {
  background: #fff; border-radius: var(--radius); padding: 1.75rem; text-align: center;
  box-shadow: var(--shadow-soft); border: 1px solid var(--border); transition: var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-medium); }
.value-card__icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.value-card__icon svg { width:28px; height:28px; fill:none; stroke-width:1.8; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p  { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.65; }

.about__africa { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about__africa h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1.25rem; }
.about__africa p  { color: var(--muted-fg); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .about__main   { grid-template-columns: 1fr; }
  .about__africa { grid-template-columns: 1fr; }
  .about__africa .order-img { order: -1; }
}

/* ── Footer ───────────────────────────────────────────── */
.footer { background: var(--primary-dark); color: #fff; }
.footer__main { padding: 5rem 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer__brand { }
.footer__logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer__logo-icon {
  width:40px; height:40px; background: var(--secondary); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: #fff;
}
.footer__logo-text { display: flex; flex-direction: column; }
.footer__logo-text strong { font-size: 1.2rem; }
.footer__logo-text span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.footer__desc { color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 1.5rem; font-size: 0.95rem; }
.footer__socials { display: flex; gap: 0.75rem; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: 0.4rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); transition: var(--transition);
}
.footer__socials a:hover { background: rgba(255,255,255,0.2); }
.footer__socials svg { width:18px; height:18px; fill:#fff; }

.footer__col h3 { font-size: 1rem; margin-bottom: 1.25rem; color: #fff; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col a { color: rgba(255,255,255,0.72); font-size: 0.9rem; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__contact-item { display: flex; align-items: flex-start; gap: 0.6rem; color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.footer__contact-item svg { width:16px; height:16px; flex-shrink:0; margin-top:2px; fill:none; stroke:var(--secondary-light); stroke-width:2; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 1.5rem 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer__bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.2s; }
.footer__bottom-links a:hover { color: #fff; }

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom-inner { flex-direction: column; text-align: center; } }

/* ── Page header (vacancies / contact) ────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 7rem 0 4rem; margin-top: 64px; color: #fff;
}
.page-hero__badge {
  display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
  padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; margin-bottom: 1rem; line-height: 1.1; }
.page-hero h1 span { color: var(--secondary-light); }
.page-hero p   { font-size: 1.1rem; color: rgba(255,255,255,0.88); max-width: 600px; line-height: 1.7; }

/* ── Vacancies page ───────────────────────────────────── */
.vacancies-body { background: #fbf9f8; min-height: 60vh; }
.vacancies-layout {
  display: block;
  padding: 3.5rem 1.5rem 5rem; max-width: 1200px; margin: 0 auto;
}

/* Sidebar */
.filter-sidebar { }
.filter-box {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(0,89,187,0.05); border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}
.filter-box h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.filter-box h3 svg { width:20px; height:20px; fill:none; stroke:var(--primary); stroke-width:2; }
.filter-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-fg); margin-bottom: 0.6rem; display: block;
}
.filter-locations { display: flex; flex-direction: column; gap: 0.5rem; max-height: 200px; overflow-y: auto; margin-bottom: 1.25rem; }
.filter-locations label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; cursor: pointer; color: #414754; }
.filter-locations input[type=checkbox] { accent-color: var(--primary); width:15px; height:15px; }
.filter-locations label:hover { color: var(--primary); }
.filter-clear { font-size: 0.78rem; font-weight: 700; color: var(--primary); background: none; border: none; margin-top: 0.25rem; }
.filter-clear:hover { text-decoration: underline; }
.filter-select {
  width: 100%; border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.6rem 0.75rem; font-size: 0.875rem; color: var(--foreground); background: var(--muted);
  outline: none; margin-bottom: 1.25rem;
}
.filter-select:focus { border-color: var(--primary); }
.filter-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-tag {
  padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  border: 1px solid var(--border); background: var(--muted); color: var(--muted-fg); cursor: pointer; transition: var(--transition);
}
.filter-tag.active,.filter-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.filter-cta {
  background: var(--primary); border-radius: var(--radius); padding: 1.5rem;
  color: #fff; position: relative; overflow: hidden;
}
.filter-cta h4 { font-weight: 700; margin-bottom: 0.4rem; }
.filter-cta p  { font-size: 0.875rem; opacity: 0.9; line-height: 1.55; margin-bottom: 1rem; }
.filter-cta a  { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px; }

/* Job listings */
.jobs-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.jobs-header h2 { font-size: 1.15rem; font-weight: 700; }
.jobs-sort { font-size: 0.875rem; color: var(--muted-fg); }
.jobs-sort span { color: var(--primary); font-weight: 700; }

.job-card {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 12px 32px rgba(0,89,187,0.04); border: 1px solid transparent;
  margin-bottom: 1.25rem; transition: var(--transition);
}
.job-card:hover { border-color: rgba(0,89,187,0.2); }
.job-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.job-card__meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.job-tag-new {
  background: rgba(107,254,156,0.2); color: #005228;
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 3px;
}
.job-location { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-fg); }
.job-card__title { font-size: 1.6rem; font-weight: 800; color: #1b1c1c; line-height: 1.2; transition: color 0.2s; }
.job-card:hover .job-card__title { color: var(--primary); }
.job-save-btn { background: none; border: none; padding: 0; flex-shrink: 0; }
.job-save-btn svg { width:22px; height:22px; fill:none; stroke:#c1c6d7; stroke-width:2; transition: stroke 0.2s; }
.job-save-btn.saved svg, .job-card:hover .job-save-btn svg { stroke: var(--primary); }
.job-card__desc { color: #414754; font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid rgba(193,198,215,0.15); }
.job-card__pills { display: flex; align-items: center; gap: 1.5rem; }
.job-pill { display: flex; align-items: center; gap: 0.4rem; color: #414754; font-size: 0.875rem; }
.job-pill svg { width:18px; height:18px; fill:none; stroke:var(--primary); stroke-width:2; }
.btn-view-details {
  padding: 0.55rem 1.5rem; background: var(--muted); color: var(--primary);
  font-weight: 700; border-radius: 0.4rem; border: none; transition: var(--transition); font-size: 0.9rem;
}
.btn-view-details:hover { background: var(--primary); color: #fff; }

/* Empty state */
.jobs-empty { text-align: center; padding: 5rem 1rem; color: var(--muted-fg); }
.jobs-empty p { font-size: 1.1rem; margin-bottom: 0.75rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding-top: 2rem; }
.pagination button {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent;
  font-weight: 700; color: var(--muted-fg); font-size: 0.9rem; transition: var(--transition);
}
.pagination button:hover { background: var(--muted); }
.pagination button.active { background: var(--primary); color: #fff; }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.pagination .pg-arrow { display: flex; align-items: center; justify-content: center; }
.pagination .pg-arrow svg { width:20px; height:20px; fill:none; stroke:var(--foreground); stroke-width:2; }

/* Can't find your fit CTA */
.vacancies-cta {
  background: #0f172a; border-radius: 2rem; padding: 4rem 3rem;
  color: #fff; position: relative; overflow: hidden; margin: 0 1.5rem 5rem;
}
.vacancies-cta__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,89,187,0.35) 0%, transparent 60%); pointer-events: none; }
.vacancies-cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.vacancies-cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.vacancies-cta p  { color: #94a3b8; line-height: 1.75; margin-bottom: 2rem; max-width: 420px; }
.vacancies-cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.vacancies-cta__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vacancies-cta__card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; padding: 1.25rem; }
.vacancies-cta__card svg { width:28px; height:28px; fill:none; stroke:#6bfe9c; stroke-width:1.8; margin-bottom: 0.75rem; }
.vacancies-cta__card h4 { font-weight: 700; margin-bottom: 0.25rem; font-size: 0.95rem; }
.vacancies-cta__card p  { color: #64748b; font-size: 0.8rem; margin: 0; }
@media (max-width: 900px) { .vacancies-cta__grid { grid-template-columns: 1fr; } .vacancies-cta__cards { display: none; } }

/* Job detail modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 200; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 680px; width: 100%;
  max-height: 85vh; overflow-y: auto; box-shadow: 0 40px 80px rgba(0,0,0,0.25);
}
.modal__header { padding: 1.75rem 1.75rem 0; }
.modal__header p { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); margin-bottom: 0.35rem; }
.modal__header h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.modal__body { padding: 1.5rem 1.75rem; }
.modal__section { margin-bottom: 1.5rem; }
.modal__section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-fg); margin-bottom: 0.5rem; display: block; }
.modal__section p, .modal__section-content { line-height: 1.7; color: var(--foreground); }
.modal__footer { display: flex; gap: 1rem; padding: 0 1.75rem 1.75rem; }

/* ── Contact page ─────────────────────────────────────── */
.contact-section { padding: 4rem 0 6rem; background: #f8fafc; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
.contact-info > p { color: var(--muted-fg); line-height: 1.75; margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.contact-detail svg { width:20px; height:20px; fill:none; stroke:var(--primary); stroke-width:2; flex-shrink:0; }
.contact-detail span { color: var(--foreground); font-size: 0.95rem; }

/* CV tabs */
.cv-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.cv-tab {
  flex: 1; padding: 0.85rem 0.6rem; text-align: center; font-weight: 600; font-size: 0.85rem;
  background: #fff; color: var(--muted-fg); border: none; cursor: pointer; transition: var(--transition); border-right: 1px solid var(--border);
}
.cv-tab:last-child { border-right: none; }
.cv-tab.active { background: var(--primary); color: #fff; }
.cv-tab:hover:not(.active) { background: var(--muted); }

.cv-panel { display: none; }
.cv-panel.active { display: block; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow-soft); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: 0.5rem;
  font-size: 0.95rem; color: var(--foreground); background: #fff; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,89,187,0.1); }
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* File upload */
.file-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center;
  transition: var(--transition); cursor: pointer; position: relative; background: var(--muted);
}
.file-upload-area:hover, .file-upload-area.dragover { border-color: var(--primary); background: rgba(0,89,187,0.04); }
.file-upload-area.has-file { border-color: #16a34a; border-style: solid; background: #f0fdf4; }
.file-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-upload-area svg.upload-icon { width:40px; height:40px; stroke:var(--muted-fg); fill:none; stroke-width:1.5; margin: 0 auto 0.75rem; }
.file-upload-area.has-file svg.upload-icon { display: none; }
.file-upload-area .upload-default { }
.file-upload-area.has-file .upload-default { display: none; }
.file-upload-area p { color: var(--muted-fg); font-size: 0.9rem; }
.file-upload-area p strong { color: var(--primary); }

.file-selected-info { display: none; align-items: center; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.file-upload-area.has-file .file-selected-info { display: flex; }
.file-selected-icon { width: 36px; height: 36px; border-radius: 50%; background: #16a34a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-selected-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }
.file-selected-text { text-align: left; }
.file-selected-name { font-size: 0.9rem; font-weight: 700; color: #15803d; word-break: break-all; }
.file-selected-size { font-size: 0.75rem; color: #166534; opacity: 0.8; }
.file-change-link { font-size: 0.75rem; color: var(--primary); font-weight: 600; text-decoration: underline; display: block; margin-top: 0.5rem; }

.file-name-display { display: none; }

/* ── Toast notification ───────────────────────────────── */
.toast {
  position: fixed; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 3rem));
  visibility: hidden; opacity: 0;
  background: #15803d; color: #fff; padding: 1rem 1.5rem;
  border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem; font-weight: 600; z-index: 999;
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.3s ease, visibility 0s linear 0.4s;
  min-width: 280px; max-width: 90vw;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  visibility: visible; opacity: 1;
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.3s ease, visibility 0s linear 0s;
}
.toast svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.5; flex-shrink: 0; }
.toast__close { margin-left: auto; background: none; border: none; color: #fff; opacity: 0.7; cursor: pointer; font-size: 1.1rem; padding: 0 0 0 0.5rem; }
.toast__close:hover { opacity: 1; }

.quick-upload-hint {
  background: rgba(0,89,187,0.06); border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem; border-radius: 0 0.5rem 0.5rem 0; margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--foreground); line-height: 1.6;
}
.quick-upload-hint strong { color: var(--primary); }

.form-success {
  display: none; background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius);
  padding: 1.25rem 1.5rem; color: #166534; text-align: center; font-weight: 600; margin-bottom: 1rem;
}
.form-error {
  display: none; background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--radius);
  padding: 1rem 1.25rem; color: #991b1b; font-size: 0.875rem; margin-bottom: 1rem;
}

/* ── Utility ──────────────────────────────────────────── */
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
