/* IBR Hospital — Trabalhe Conosco */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #f0f4f8;
  color: #0d1f3c;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px;
  background: rgba(6,15,30,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.logo-text { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.logo-sub { font-size: .55rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #5a9ef0; }

.btn-back {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75); padding: 8px 16px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; text-decoration: none; transition: all .2s;
}
.btn-back:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── Hero ── */
.hero {
  position: relative; padding: 160px 0 100px;
  background: linear-gradient(145deg,#060f1e 0%,#0d2550 60%,#103060 100%);
  overflow: hidden; text-align: center;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,92,204,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,92,204,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #5a9ef0;
  background: rgba(90,158,240,.12); border: 1px solid rgba(90,158,240,.25);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -.02em; }
.hero p { font-size: 1rem; color: rgba(255,255,255,.65); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── Vagas section ── */
.vagas-section { padding: 72px 0 40px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; color: #0d1f3c; margin-bottom: 8px; }
.section-header p { font-size: .95rem; color: #7a90b3; }

/* Loading */
.loading-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.skeleton-card {
  height: 200px; border-radius: 14px;
  background: linear-gradient(90deg, #e8edf5 25%, #f0f4f8 50%, #e8edf5 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Vagas grid */
.vagas-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.vaga-card {
  background: #fff; border-radius: 14px; padding: 28px;
  border: 1.5px solid #e8edf5;
  box-shadow: 0 2px 12px rgba(13,32,68,.05);
  display: flex; flex-direction: column; gap: 16px;
  transition: all .25s ease;
}
.vaga-card:hover { border-color: #1a5ccc; box-shadow: 0 8px 28px rgba(26,92,204,.12); transform: translateY(-3px); }

.vaga-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vaga-badge {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: #deeafd; color: #1a5ccc; padding: 4px 10px; border-radius: 50px;
  white-space: nowrap;
}
.vaga-card h3 { font-size: 1.05rem; font-weight: 700; color: #0d1f3c; line-height: 1.3; }
.vaga-depto { font-size: .82rem; color: #7a90b3; display: flex; align-items: center; gap: 6px; }
.vaga-info { display: flex; gap: 12px; flex-wrap: wrap; }
.vaga-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; color: #3d5175; background: #f4f7fc;
  padding: 5px 10px; border-radius: 6px;
}
.vaga-desc { font-size: .875rem; color: #3d5175; line-height: 1.6; flex: 1; }
.btn-candidatar {
  width: 100%; padding: 12px; border-radius: 10px;
  background: #1a5ccc; color: #fff; border: none;
  font-size: .9rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all .2s; margin-top: auto;
}
.btn-candidatar:hover { background: #2e7ae0; box-shadow: 0 4px 14px rgba(26,92,204,.35); }

/* Empty state */
.empty-state { text-align: center; padding: 64px 24px; color: #7a90b3; }
.empty-state svg { margin: 0 auto 16px; display: block; opacity: .3; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: #3d5175; margin-bottom: 8px; }
.empty-state p { font-size: .9rem; }

/* ── Espontânea ── */
.espontanea-section { padding: 0 0 72px; }
.espontanea-card {
  background: linear-gradient(135deg, #060f1e, #0d2550);
  border-radius: 16px; padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.espontanea-info { display: flex; align-items: center; gap: 20px; }
.espontanea-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #5a9ef0; flex-shrink: 0;
}
.espontanea-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.espontanea-card p { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.6; max-width: 480px; }
.btn-espontanea {
  background: #1a5ccc; color: #fff; border: none; border-radius: 10px;
  padding: 13px 28px; font-size: .95rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-espontanea:hover { background: #2e7ae0; box-shadow: 0 4px 16px rgba(26,92,204,.4); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,15,30,.7);
  backdrop-filter: blur(6px); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.modal-header {
  padding: 22px 28px; border-bottom: 1px solid #e8edf5;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 800; color: #0d1f3c; }
.modal-sub { font-size: .82rem; color: #7a90b3; margin-top: 3px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 8px;
  background: #f0f4f8; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #7a90b3; flex-shrink: 0; transition: all .2s;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }

.modal-body { padding: 24px 28px; }
.modal-footer {
  padding: 16px 28px; border-top: 1px solid #e8edf5;
  display: flex; justify-content: flex-end; gap: 10px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: #3d5175; margin-bottom: 7px;
}
.label-hint { font-size: .7rem; font-weight: 400; color: #7a90b3; text-transform: none; letter-spacing: 0; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  font-size: .9rem; font-family: inherit; color: #0d1f3c;
  background: #fafbfc; transition: all .2s; outline: none; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #1a5ccc; background: #fff; box-shadow: 0 0 0 3px rgba(26,92,204,.1); }

/* File upload */
.file-upload { position: relative; cursor: pointer; }
.file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.file-upload-inner {
  border: 2px dashed #c8d5e8; border-radius: 10px;
  padding: 28px 20px; text-align: center; background: #fafbfc;
  transition: all .2s; color: #7a90b3;
}
.file-upload:hover .file-upload-inner,
.file-upload.has-file .file-upload-inner { border-color: #1a5ccc; background: #f0f6ff; color: #1a5ccc; }
.file-upload-inner svg { margin: 0 auto 10px; display: block; }
.file-upload-inner p { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.file-upload-inner span { font-size: .75rem; opacity: .7; }
.file-name { font-size: .8rem; color: #059669; font-weight: 600; margin-top: 8px; }

.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  border-radius: 8px; padding: 10px 14px; font-size: .85rem;
  margin-top: 4px; display: none;
}
.form-error.show { display: block; }
.form-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #059669;
  border-radius: 8px; padding: 14px 18px; font-size: .9rem; font-weight: 600;
  margin-top: 4px; display: none; text-align: center;
}
.form-success.show { display: block; }

.btn-cancelar {
  background: #f0f4f8; color: #3d5175; border: none; border-radius: 9px;
  padding: 11px 20px; font-size: .9rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .2s;
}
.btn-cancelar:hover { background: #e2e8f0; }
.btn-enviar {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1a5ccc; color: #fff; border: none; border-radius: 9px;
  padding: 11px 22px; font-size: .9rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all .2s;
}
.btn-enviar:hover { background: #2e7ae0; box-shadow: 0 4px 14px rgba(26,92,204,.35); }
.btn-enviar:disabled { opacity: .6; pointer-events: none; }

@media (max-width: 900px) {
  .vagas-grid, .loading-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .vagas-grid, .loading-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .espontanea-card { flex-direction: column; padding: 28px 24px; }
  .btn-espontanea { width: 100%; }
}